home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / cool / cool.lha / ice / README.port < prev    next >
Text File  |  1991-09-04  |  4KB  |  107 lines

  1. This file includes instructions for porting ICE on platforms
  2. other than SPARC/SUN and OS2/PS2.
  3.  
  4. Here "ICE" means the full pathname to the ice directory.
  5. "PORT" means the machine/os you are porting ice to.
  6.  
  7. 0. Create config files 
  8.  
  9.    In order to generate the ice Makefiles from the Imakefiles, you need
  10. to create the files PORT.cf in the directories ICE/pisces/config and
  11. ICE/cool/config where "PORT" is the new machine/os type you are porting
  12. ice to.  I suggest that you start with mips.cf and edit reference to MIPS
  13. to the new machine type.  This new file might need different "rules"
  14. macros. See os2.cf for examples.  If this is a UNIX based port, you
  15. probably will not need additional macros or definitions.
  16.  
  17.     cd ICE/pisces/config
  18.     cp mips.cf PORT.cf
  19.     ;; edit references of MIPS in PORT.cf
  20.     
  21.     cd ICE/cool/config
  22.     cp mips.cf PORT.cf
  23.     ;; edit references of MIPS in PORT.cf
  24.  
  25. 0.1 Create empty directories
  26.  
  27.    cd ICE  # ICE here means the full pathname to the ice directory
  28.    mkdir bin include include/cool lib lib/PORT
  29.  
  30. 1. Bootstrap
  31.  
  32.    After creating the .cf files, you will need to create the pimake and
  33. cpp executables which are used to create Makefiles from the Imakefiles
  34. under ice.
  35.  
  36.    cd ICE/pisces/pimake
  37.    cp bootstrap.sparc bootstrap.PORT
  38.    ;; edit bootstrap.PORT to refer to PORT
  39.    ;; if maintaining RCS remove  #define RCSDependFlag
  40.    make -f bootstrap.PORT install clean TOP=ICE
  41.  
  42.    cd ICE/pisces/cpp
  43.    cp bootstrap.sparc bootstrap.PORT
  44.    ;; edit bootstrap.PORT to refer to PORT
  45.    ;; if maintaining RCS remove  #define RCSDependFlag
  46.    make -f bootstrap.PORT install clean TOP=ICE
  47.  
  48.    set path=(/ICE/bin $path) # set path to include the /ICE/bin directory
  49.  
  50.    cd ICE
  51.    ;; "port" is the new  machine/os you are porting ice to
  52.    pimake -Dport -DTOPDIR=/ICE -DREV=1 -I/ICE/cool/config
  53.    make bootstrap
  54.  
  55.    2. Build ICE
  56.  
  57. *************************************************************************
  58.    You might need to alter ICE/CCC/config.h and ICE/CCC/CCC.c to
  59.    allow for the new machine/os, ie, PORT.
  60.  
  61.    Note: ICE assumes AT&T cfront 2.0 with:
  62.       CC2                     C++ compiler 
  63.      /usr/include/CC2         C++ include directory
  64.      cfront2                  cfront translator
  65.      patch2                   patch program
  66.      -lC2                     C++ library name
  67.    If these names are wrong on your PORT system you need to either 
  68.        link the correct names to the names ICE requires ...
  69.    or  set environment variables:  cfrontC (cfront2), patchC (patch2), 
  70.        LIBRARY (-lC2)
  71.    or  edit files "ICE/cool/config/PORT.cf" references to "CC2".
  72.        and edit files "ICE/CCC/config.h" references
  73.        to "cfront2", "patch2", and "-lC2".
  74.  
  75.    Also in "ICE/CCC/config.h"  it assumes tmp directory name of "/tmp".
  76.  
  77. *************************************************************************
  78.  
  79.    cd ICE
  80.    make clean clobber
  81.  
  82.    cd ICE/pisces     
  83.    make all install   ;; Note that the only two systems you need
  84.              to build pisces is "pimake" and "cpp".
  85.              Edit pisces/Imakefile to the specific
  86.                          systems you wish to build.
  87.  
  88.    [ if maintaining RCS on ICE do: cd ICE; make forcecheckout depend;
  89.      (ignore errors from make depend) ]
  90.  
  91.    cd ICE
  92.    make all runtest results
  93.  
  94.    cd ICE                   # This is optional;  
  95.    chmod 444 include/*.p    # The .p files should only be modified when
  96.                 # compiling COOL library files;
  97.                 # Before updating COOL library, do: chmod +w *.p
  98. 3. Done
  99.    ls ICE/bin
  100.    ls ICE/lib/PORT
  101.    ls ICE/include/*.p
  102.  
  103. #To remake just cool:
  104.    rm /ice/lib/PORT/libCOOL.a
  105.    cd ICE/cool
  106.    make clean clobber includes all runtest results
  107.